package com.taiji.dianthus.domain.sms;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.Proxy;

import javax.persistence.*;
import java.util.Date;


@Entity
@Table(name = "t_sms_mo_info")
@Proxy(lazy = false)
@JsonIgnoreProperties({"handler", "hibernateLazyInitializer"})
@ApiModel(description = "上行短信信息表")
public class SmsMoInfo {
    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(name = "id")
    @ApiModelProperty(value = "主键", name = "id")
    private String id;

    @Column(name = "mobile")
    @ApiModelProperty(value = "上行手机号码", name = "mobile")
    private String mobile;//mobile	String	回执手机号，每批次返回一个号码。
    @Column(name = "sms_content")
    @ApiModelProperty(value = "上行短信内容", name = "smsContent")
    private String smsContent;

    @Column(name = "send_time")
    @ApiModelProperty(value = "上行短信发送时间，格式：yyyy-MM-dd HH:mm:ss", name = "receiveDate")
    private Date sendTime;

    @Column(name = "add_serial")
    @ApiModelProperty(value = "上行服务代码", name = "addSerial")
    private String addSerial;//

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "sms_info_id")
    @ApiModelProperty(value = "发送消息id", name = "smsInfoId")
    private String smsInfoId;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getSmsContent() {
        return smsContent;
    }

    public void setSmsContent(String smsContent) {
        this.smsContent = smsContent;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public String getAddSerial() {
        return addSerial;
    }

    public void setAddSerial(String addSerial) {
        this.addSerial = addSerial;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getSmsInfoId() {
        return smsInfoId;
    }

    public void setSmsInfoId(String smsInfoId) {
        this.smsInfoId = smsInfoId;
    }

    @Override
    public String toString() {
        return "SmsMoInfo{" +
                "id='" + id + '\'' +
                ", mobile='" + mobile + '\'' +
                ", smsContent='" + smsContent + '\'' +
                ", sendTime=" + sendTime +
                ", addSerial='" + addSerial + '\'' +
                ", createTime=" + createTime +
                ", smsInfoId='" + smsInfoId + '\'' +
                '}';
    }
}
